//
// Created by wze-zero on 2024/8/21 021.
//
#include <iostream>

using namespace std;

int main() {
    long num;
    cin >> num;
    cout << (2 << (num - 1)) << endl;
}